﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MapLibrary.Players.CollisionResponse;
using MapLibrary.Players;

namespace MapLibrary.CollisionResponse
{
    public class ProteinPlayerBehavior : CollisionBehavior
    {

        private ProteinParticle protein;

        public ProteinPlayerBehavior(ProteinParticle p)
        {
            protein = p;
        }

        public override void Update(bool contained)
        {
            if (contained)
            {
                protein.World.CurrentLevel.AddBodyToRemove(protein);
            }
        }
    }
}
